import http from "@/utils/http";
import type {ResponseData} from "@/types/user";

export function getGoodsApi(id){
  return http<ResponseData<any>>({
    url: '/goods',
    params: {
      id
    }
  })
}

export const getGoodsHotAPI = ({id, type, limit = 3}) => {
  return http<ResponseData<any>>({
    url: '/goods/hot',
    params: {
      id,
      type,
      limit
    }
  })
}